@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;1,300&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital@0;1&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,600;1,600&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,800;1,800&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,500;1,500&display=swap');

* {
    margin: 0;
    padding: 0px;
    box-sizing: border-box;
    text-decoration: none;
    max-width: 98.72vw;
}

body {
    width: auto;
    height: auto;
    margin: 0;
    font-size: 100%;
    font-family: 'Open Sans';
    background: solid #e2e2e2;
}
/*Header e Footer*/
    ul {
        display: flex;
        flex-direction: row;
        list-style: none;
        justify-content: center;
    }


    li {
        list-style: none;
        display: flex;
        align-items: center;
    }
    .header {
        position: sticky;
        display: flex;
        flex-direction: row;
        top: 0px;
        left: 0;
        align-items: center;
        justify-content: space-between;
        padding-left: 5vw;
        padding-right: 2vw;
        width: 100vw;
        height: 60px;
        background: #000000bc;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 9;
    }


    .header_nav {
        position: relative;
        display: flex;
        flex-direction: row;
        width: auto;
        height: auto;
        justify-content: space-between;
        gap: 30px;
        font-family: 'Open Sans';
        font-weight: 400;
        font-size: 14px;
        z-index: 10;
    }

    .header_nav ul {
        display: flex;
        flex-direction: row;
        color: #fff;
        gap: 20px;
        width: auto;
    }
    .header_nav ul li a {
        color: #ddd;
        font-size: 14px;
        transition: color 0.2s ease, font-weight 0.2s ease;
    }

    .header_nav ul li a:hover {
        color: #fff;
        font-weight: 600;
    }


    .logo {
        list-style: none;
        background: transparent;
        border: none;
    }
    .logo_img {
        position: absolute;
        top: 5px;
        left: 100px;
        width: auto;
        height: 45px;
        cursor: pointer;

    }

    .box_header_button {
        position: relative;
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: flex-start;
    }


    .sectionfooter {
        height: auto;
        padding-bottom: 4.1vw;
        background-color: #ce0000;
        width: 100vw;
    }

    .button_aluno, .button_subscribe {
        position: relative;
        display: flex;
        height: auto;
        color: #ffffff;
        height: 30px;
        font-size: 14px;
        font-family: 'Open Sans';
        border: 1px solid #ffffff;
        border-radius: 5px;
        font-weight: 400;
        transition: font-size 0.3s ease;
        z-index: 11;
        align-items: center;
        justify-content: center;
        padding-right: 25px;
        padding-left: 25px;

    }

    .button_subscribe {
        background: #ce0000;
        border: 0PX;
    }

    /* ---- HAMBURGER ---- */
    .hamburger {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px;
        z-index: 12;
        flex-shrink: 0;
    }

    .hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        max-width: none;
    }

    /* Animação do X quando drawer está aberto */
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Botão login exclusivo do mobile — oculto no desktop */
    .btn_mobile_login {
        display: none;
        flex-shrink: 0;
    }

    /* ---- DRAWER ---- */
    .drawer_overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        max-width: none;
    }

    .drawer_overlay.open {
        opacity: 1;
        pointer-events: all;
    }

    .drawer {
        position: fixed;
        top: 0;
        left: 0;
        width: 78vw;
        max-width: 300px;
        height: 100dvh;
        background: #0b0d12;
        z-index: 101;
        transform: translateX(-100%);
        transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        /* Barra vermelha no topo */
        border-top: 3px solid #ce0000;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
    }

    .drawer.open {
        transform: translateX(0);
    }

    /* Cabeçalho do drawer */
    .drawer_header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 22px 22px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        max-width: none;
    }

    .drawer_logo {
        width: 120px;
        max-width: none;
    }

    .drawer_close {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #888;
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 50%;
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
        max-width: none;
        line-height: 1;
    }

    .drawer_close:hover {
        background: rgba(206, 0, 0, 0.2);
        color: #fff;
        border-color: rgba(206, 0, 0, 0.4);
    }

    /* Navegação */
    .drawer_nav {
        padding: 26px 22px 0;
        flex: 1;
        max-width: none;
    }

    .drawer_section_label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 2.5px;
        color: #ce0000;
        margin-bottom: 14px;
        font-family: 'Open Sans', sans-serif;
        max-width: none;
    }

    .drawer_ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .drawer_ul li {
        width: 100%;
        max-width: none;
    }

    .drawer_ul li a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        padding: 15px 0;
        color: #b0b0b0;
        font-size: 0.95rem;
        font-family: 'Open Sans', sans-serif;
        font-weight: 400;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transition: color 0.2s;
        max-width: none;
    }

    .drawer_ul li a:hover {
        color: #fff;
    }

    .drawer_arrow {
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.2);
        transition: transform 0.2s ease, color 0.2s;
        max-width: none;
        /* Empurra a seta para a direita com margem mínima do texto */
        margin-left: auto;
        padding-left: 24px;
        flex-shrink: 0;
    }

    .drawer_ul li a:hover .drawer_arrow {
        transform: translateX(4px);
        color: #ce0000;
    }

    /* Rodapé do drawer */
    .drawer_footer {
        padding: 20px 22px 30px;
        max-width: none;
    }

    .drawer_divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.07);
        margin-bottom: 20px;
        max-width: none;
    }

    .drawer_cta {
        display: block;
        padding: 14px;
        border-radius: 8px;
        background: linear-gradient(135deg, #ce0000 0%, #e83535 100%);
        color: #fff;
        font-family: 'Open Sans', sans-serif;
        font-weight: 700;
        font-size: 0.85rem;
        text-align: center;
        letter-spacing: 1px;
        box-shadow: 0 4px 18px rgba(206, 0, 0, 0.35);
        transition: opacity 0.2s, transform 0.2s;
        max-width: none;
    }

    .drawer_cta:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }

    .drawer_brand {
        text-align: center;
        color: rgba(255, 255, 255, 0.18);
        font-size: 0.72rem;
        font-family: 'Open Sans', sans-serif;
        margin-top: 16px;
        max-width: none;
    }

    .footer{
        position: relative;
        display: block;
        background:#0d0f14;
        width: 100vw;
        color:#fff;
        padding:70px 0 30px;
        font-family:'Open Sans', sans-serif;
        bottom: 0;
    }

    .footer-container{
        width:90vw;
        left: 5vw;
        margin:auto;
    }

    /* GRID */
    .footer-grid{
        display:grid;
        grid-template-columns:2fr 1fr 1fr 1fr;
        gap:40px;
    }

    /* LOGO + DESC */
    .footer-logo{
        width:200px;
        margin-bottom:20px;
    }

    .footer-description{
        color:#a1a1aa;
        font-size:.9rem;
        line-height:1.6;
    }

    /* TITLES */
    .footer-col h4{
        font-size:1rem;
        margin-bottom:15px;
        font-weight:600;
    }

    /* LINKS */
    .footer-col ul{
        position: relative;
        display: flex;
        flex-direction: column;
        list-style:none;
        padding:0;
    }

    .footer-col li{
        margin-bottom:10px;
    }

    .footer-col a{
        text-decoration:none;
        color:#a1a1aa;
        font-size:.9rem;
        transition:.25s;
    }

    .footer-col a:hover{
        color:#fff;
    }

    /* CONTACT */
    .contact li{
        color:#a1a1aa;
        font-size:.9rem;
    }

    /* DIVIDER */
    .footer-divider{
        height:1px;
        background:#242833;
        margin:40px 0 25px;
    }

    /* BOTTOM */
    .footer-bottom{
        display:flex;
        justify-content:space-between;
        flex-wrap:wrap;
        gap:10px;
        font-size:.85rem;
        color:#7b8190;
    }


/*Fim Header e Footer*/

/* ============================================================
   MOBILE — @media screen
   ============================================================ */

@media screen and (max-width: 768px) {
    * {
        max-width: 100vw;
    }

    ul {
        flex-direction: column;
    }

    /* --- HEADER MOBILE: grid de 3 colunas para logo exatamente centralizado --- */
    .header {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        padding: 0 4vw;
        gap: 0;
        /* mantém os elementos do desktop fora do fluxo */
        grid-template-areas: "ham logo login";
    }

    .hamburger {
        display: flex;
        grid-area: ham;
        justify-self: start;
    }

    /* Link que envolve o logo */
    .logo_link {
        grid-area: logo;
        justify-self: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo {
        position: static;
        transform: none;
        display: flex;
        align-items: center;
    }

    .logo_img {
        position: static;
        height: 40px;
        left: auto;
        top: auto;
    }

    /* Nav desktop oculto */
    .header_nav {
        display: none;
    }

    /* Botão login mobile */
    .btn_mobile_login {
        grid-area: login;
        justify-self: end;
        display: flex;
        padding-left: 14px;
        padding-right: 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* --- DRAWER --- */
    .drawer_overlay,
    .drawer {
        max-width: none;
    }

    /* --- FOOTER --- */
    .footer-grid{
        grid-template-columns:1fr;
        text-align:center;
    }

    .footer-bottom{
        flex-direction:column;
        align-items:center;
        text-align:center;
    }

    .cabecalho-menu {
        display: none;
    }

    .botaomenumobile button{
        display: block;
        position: absolute;
        left: 5vw;
        top: 18px;
    }

    .cabecalho-logo {
        position: absolute;
        left: 30vw;
        height: 50px;
    }
}
